//
//  XMUtil.h
//  XunMi
//
//  Created by MacBook on 2024/2/18.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XMUtil : NSObject

/// 应用名称
+ (NSString *)appName;

/// 当前设备的 用户自定义的别名（库克的 iPhone 9）
+ (NSString *)iphoneName;

/// 系统版本（15.7.3）
+ (NSString *)iphoneSystemVersion;

/// BundleID，应用包名
+ (NSString *)bundleIdentifier;

/// 构建版本号（30）
+ (NSString *)bundleVersion;

/// 应用版本号，AppStore的版本号（1.0.0）
+ (NSString *)bundleShortVersionString;

/// 设备型号名称（iPhone9,2)
+ (NSString *)iphoneType;

/// 设备型号名称（iPhone 7 Plus)
+ (NSString *)iphoneTypeName;

/// 设备是否模拟器
+ (BOOL)isSimulator;

/// 获取设备当前网络IP地址
+ (NSString *)getIPAddress:(BOOL)preferIPv4;

/// 设备类型（iPhone Simulator/iPad Simulator/iPod touch/iPad/iPhone）
+ (NSString *)deviceModel;

//获取当前UUID
+ (NSString *)uuid;

//获取当前deviceId
+ (NSString *)deviceId;

/// 是否是iPhoneX系列留海屏
+ (BOOL)isIPhoneXSeries;

/// 是否是iPad
+ (BOOL)isIpad;

/// 位置权限
+ (NSString *)locationAuthority;

/// 通知权限
+ (NSString *)pushAuthority;

/// 相机权限
+ (NSString *)cameraAuthority;

/// 音频权限
+ (NSString *)audioAuthority;

/// 相册权限
+ (NSString *)photoAuthority;

/// 地址权限
+ (NSString *)addressAuthority;

/// 日历权限
+ (NSString *)calendarAuthority;

/// 提醒权限
+ (NSString *)remindAuthority;

/// 蓝牙权限
+ (NSString *)bluetoothAuthority;

+ (UIWindow *)getKeyWindow;

/// 剪贴板
+ (NSString *)pasteboard;

/// 是否使用代理
+ (BOOL)checkProxySetting;

/// 是否使用VPN
+ (BOOL)isVPNOn;

/// 越狱
+ (BOOL)isJailBreak;


+ (NSDictionary *)xm_readLocalFileWithName:(NSString *)name;

+ (BOOL)isBlankString:(NSString *)string;


+ (NSString *)intimacy:(NSString *)jsonStr;

+ (NSString *)member_time:(NSString *)jsonStr;

+ (NSString *)extraJsonMember_time:(NSString *)member_time intimacy:(NSString *)intimacy;

@end

NS_ASSUME_NONNULL_END
